import Vue from 'vue'

import Index from '@/views/Index.vue'
import Classify from '@/views/Classify.vue'
import Orders from '@/views/Orders.vue'
import My from '@/views/My.vue'

import VueRouter from 'vue-router'

Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    {
      path: '/index',
      component: Index,
    },
    {
      path: '/classify',
      component: Classify,
    },
    {
      path: '/orders',
      component: Orders,
    },
    {
      path: '/my',
      component: My,
    },
  ],
})

export default router
